home *** CD-ROM | disk | FTP | other *** search
- Path: dove.nist.gov!usenet
- From: sullypj@topo.nist.gov (Paul J Sullivan)
- Newsgroups: comp.lang.c
- Subject: Source utilities for endian conversion
- Date: 25 Jan 1996 11:11:01 -0500
- Organization: NIST
- Sender: sullypj@topo.nist.gov
- Message-ID: <rt9sph42r1m.fsf@topo.nist.gov>
- NNTP-Posting-Host: topo.nist.gov
- X-Newsreader: Gnus v5.0.9
-
- I am trying to write a routine (c is not my first language) that will
- allow me to read a binary data file on various platforms. I have
- encountered the -endian problem and, thus, was wondering what routines
- exist to convert between big- and little- formats. Is it possible to
- do this without the conversion i.e. somehow specify a directive?? Is
- it in a FAQ?
-
- Appreciate the help.
-
-
- --
- Paul
-
- -----------------------------------------------------
- | Dr Paul J. Sullivan sullypj@enh.nist.gov |
- | National Institute of Standards & Technology (NIST) |
- | Tel: (301) 975 6386 Fax: (301) 869 0822 |
- | http://www.coe.uncc.edu/~pjsulliv/ |
- -----------------------------------------------------
-